package com.ttai.dagger.module.activity;

import com.ttai.presenter.activity.HomePresrenter;
import com.ttai.ui.activity.MainActivity;

import dagger.Module;
import dagger.Provides;

@Module
public class HomeFragmentModule {
    MainActivity mainActivity;

    public HomeFragmentModule(MainActivity mainActivity){
        this.mainActivity = mainActivity;
    }
    @Provides
    HomePresrenter provideHomeFragmentPresenter(){
        return new HomePresrenter(mainActivity);
    }
}
